home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / tut-code.lha / tut-code / box4 / main.c < prev   
Encoding:
C/C++ Source or Header  |  1992-01-02  |  641 b   |  27 lines

  1. #include <InterViews/background.h>
  2. #include <InterViews/box.h>
  3. #include <InterViews/glue.h>
  4. #include <InterViews/label.h>
  5. #include <InterViews/session.h>
  6. #include <InterViews/style.h>
  7. #include <InterViews/window.h>
  8.  
  9. int main(int argc, char** argv) {
  10.     Session* session = new Session("Himom", argc, argv);
  11.     Style* style = session->style();
  12.     const Font* f = style->font();
  13.     const Color* fg = style->foreground();
  14.     session->run_window(
  15.     new ApplicationWindow(
  16.         new Background(
  17.         new LRBox(
  18.             new Label("good", f, fg),
  19.             new HGlue(0, fil, 0),
  20.             new Label("bye", f, fg)
  21.         ),
  22.         style->background()
  23.         )
  24.     )
  25.     );
  26. }
  27.